home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Over 1,000 Games
/
1,000 Games - Disk 1.iso
/
arcade
/
rexdemo
/
random.rpp
< prev
next >
Wrap
Text File
|
1996-12-08
|
1KB
|
174 lines
{ Random by Keebler }
var x: number;
var y: number;
var direction: number;
var count: number;
x:=100 ;
y:=100 ;
count:=15;
println(" SPACE to Clear Screen ");
println(" ESC to Exit ");
delay(3000);
$Main
count:=count+0.02;
if (count>252)
count:=15;
endif;
{setcolor(rand(0,255));}
setcolor(count);
plot(x,y);
plot(x,199-y);
plot(319-x,y);
plot(319-x,199-y);
direction:=rand(1,4);
if((direction=1)and(y>0))
y:=y-1;
endif;
if((direction=2)and(x<159))
x:=x+1;
endif;
if((direction=3)and(y<99))
y:=y+1;
endif;
if((direction=4)and(x>0))
x:=x-1;
endif;
if(kbcode(1))
goto $End
endif;
if(kbcode(57))
cls(0);
endif;
goto $Main
$End
setcolor(1);
end;